import React from 'react';
import {
  SafeAreaView,
  StyleSheet,
  ScrollView,
  View,
  Text,
  TextInput,
  StatusBar,
  Image,
  TouchableWithoutFeedback,
  ImageBackground,
  TouchableOpacity,
  Button
} from 'react-native';

import {
  Header,
  LearnMoreLinks,
  Colors,
  DebugInstructions,
  ReloadInstructions,
} from 'react-native';

import EditView from '../hengtabs/EditView'
import LoginButton from '../hengtabs/LoginButton'


const FindPwd = ({ navigation }) => {
  const { navigate } = navigation;
  return (
    <View style={styles.container}>
      {/* 标题栏 */}
      <View style={styles.title}>
        <Text style={styles.titleText}>简礼</Text>      
      </View>
      {/*表单*/}
      <View>
        <EditView name='用户名'onChangeText={(text) => {this.userName = text;}}/>
        <EditView name='手机号' onChangeText={(text) => {this.password = text;}}/>
        <EditView name='新密码' onChangeText={(text) => {this.password = text;}}/>
        <EditView name='确认密码' onChangeText={(text) => {this.password = text;}}/>    
        <Button name='确认' onPressCallback={this.onPressCallback} onPress={()=>{
          alert('密码修改成功！！！');
        }} style={{marginTop:10,height:20}}/>   
      </View>
    </View>
  );

};

const styles = StyleSheet.create({
  container: {
    backgroundColor: 'white',
  },
  // 标题栏
  title: {
    flexDirection: 'row',
  },
  titleText: {
    height: 50,
    fontSize: "2.0em",
    fontWeight:"bold",
    textAlign:"center",
    lineHeight: 50,
    paddingLeft: 30,
    flex: 2,
  },
  //表单
  
});

export default FindPwd;
